package com.singzi;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
//        Teacher t1 = new Teacher("张三", 25);
//        Teacher t2 = new Teacher("张四", 19);
//        Teacher t3 = new Teacher("王五", 23);
//        Teacher t4 = new Teacher("赵子龙", 20);
//        List<Teacher> list = new ArrayList<>();
//        list.add(t1);
//        list.add(t2);
//        list.add(t3);
//        list.add(t4);
//
//        System.out.println(list.stream().filter(e -> e.getAge() >= 20).map(Teacher::getName).limit(2).collect(Collectors.toList()));
        double pi = 3.1415926;
        String str = String.format("|%05.2f|",pi);
        System.out.println(str);
    }
}
